﻿#ifndef ELEMENT_H
#define ELEMENT_H

#include <QString>

class Visitor;

class Element
{
public:
    Element(QString name, float price);

    QString name() const;
    void setName(const QString &name);

    float price() const;
    void setPrice(float price);

    int number() const;
    void setNumber(int number);

    virtual void accept(Visitor* visitor) = 0;

private:
    QString m_name;
    float m_price;
    int m_number;
};

#endif // ELEMENT_H
